GtkCellAreaBox: Explicitly notify orientation
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Jun 2014 15:24:12 +0000 (11:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 17:30:56 +0000 (13:30 -0400)
gtk/gtkcellareabox.c

index c682ec617a11d106b364c86912f896b3a0c19e63..f0a72bc2ef64dc260d823d1c0e0c4f066b446a59 100644 (file)
@@ -1050,11 +1050,13 @@ gtk_cell_area_box_set_property (GObject       *object,
   switch (prop_id)
     {
     case PROP_ORIENTATION:
-      box->priv->orientation = g_value_get_enum (value);
-
-      /* Notify that size needs to be requested again */
-      reset_contexts (box);
-
+      if (box->priv->orientation != g_value_get_enum (value))
+        {
+          box->priv->orientation = g_value_get_enum (value);
+          /* Notify that size needs to be requested again */
+          reset_contexts (box);
+          g_object_notify_by_pspec (object, pspec);
+        }
       break;
     case PROP_SPACING:
       gtk_cell_area_box_set_spacing (box, g_value_get_int (value));